package com.cangxuan.backend.service.impl;

import com.cangxuan.backend.dao.IIssuerDao;
import com.cangxuan.backend.entity.Issuer;
import com.cangxuan.backend.service.IIssuerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IssuerServiceImpl implements IIssuerService {
    IIssuerDao issuerDao;

    @Autowired
    public void setIssuerDao(IIssuerDao issuerDao) {
        this.issuerDao = issuerDao;
    }

    @Override
    public List<Issuer> list() {
        List<Issuer> list = issuerDao.list();
        return list;
    }
}
